<template>
	<view>
			<view class="page-appoint">
				<view class="appoint-item" v-for="(item,index) in cdlists" :key="index" >
					<view class="nav">名称：{{item.nickName}}</view>
					<view class="nav">手机号： {{item.phone}}</view>
					<view class="nav">权限：{{item.cdtype==2?'车队管理':'车队司机'}}</view>
				</view>
			</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				cdlists:[]
			}
		},
		onLoad(op) {
			this.id = op.cdid
			this.init(this.id)	
		},
		methods: {
			async init(id) {
				let data = {
					cdid:this.id
				}
				let res1 =  await this.$api.getcdlist({cdid:this.id})
				console.log(res1.data.data)
				this.cdlists = res1.data.data;
			}
		},
		
		
	}
</script>

<style lang="scss">
.page-appoint{
		font-size: 14px;
		box-sizing: border-box;
		background-color: #FFFFFF;
		min-height: 610px
	}
	.appoint-item {
		width: 96%;
		background-color: #55aaff;
		color: #FFFFFF;
		border-radius: 10px;
		margin: 0 auto;
		padding: 10px;
		font-weight: 600;
		margin-top: 20upx;
		overflow: hidden;
	}
	.nav{
		font-size: 18px;
		// float: left;
		text-align: left;
		padding: 5px;
	}
</style>
